package com.sdkj.service.law;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdkj.dao.DaoSupport;
import com.sdkj.entity.Page;
import com.sdkj.util.PageData;

@Service("lawSendService")
public class LawSendService {
	
	@Resource(name="daoSupport")
	private DaoSupport dao;

	public List<PageData> list(Page page)throws Exception {
		return (List<PageData>)dao.findForList("LawSendMapper.datalistPage", page);
	}

	public void save(PageData pd) throws Exception{
		dao.save("LawSendMapper.save", pd);
		
	}

	public PageData findById(PageData pd) throws Exception{
		return (PageData) dao.findForObject("LawSendMapper.findById", pd);
	}
	
	
	
	
	
	
}
